import request from "@/utils/request"

export function pageList(query){
    return request({
        url: "/course/plan/list",
        method: "get",
        params: query
    });
}

export function createOrUpdate(data){
    return request({
        url: "/course/plan/createOrUpdate",
        method: "post",
        data
    });
}
export function searchListForCalendar(data){
    return []
}

export function delTime(data){
    return {};
}

export function classCourseTable(query){
    return request({
        url: "/course/classCourseTable",
        method: "get",
        params: query
    });
}

export function coursePageList(query){
    return request({
        url: "/course/list",
        method: "get",
        params: query
    });
}

//新增或修改排课课程
export function createOrUpdateCourse(data){
    return request({
        url: "/course/createOrUpdate",
        method: "post",
        data
    });
}

//新增或修改排课课程
export function deleteCorse(params){
    return request({
        url: "/course/delete/" + params,
        method: "delete"
    });
}

//删除排课计划
export function deleteCorsePlan(params){
    return request({
        url: "/course/plan/delete/" + params,
        method: "delete"
    });
}
